package com.jt.service;

import com.jt.anno.Gjh;
import org.springframework.stereotype.Service;

@Service
//被代理者
public class UserServiceImpl implements UserService{
    @Override
    @Gjh(age = 23)
    public void addUser() {
        System.out.println("新增用户");
        //int a = 1/0;
    }

    @Override
    @Gjh(age = 23)
    public void delUser() {
        System.out.println("删除用户");
    }

    @Override
    @Gjh(age = 23)
    public String findUser() {
        //int a = 1/0;
        return "发现新用户";
    }
}
